﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;

namespace BUS
{
    public class DonHangBUS
    {
		public static List<DonHangDTO> DanhSachDonHang(string LoaiDonHang, string TinhTrang, DateTime NgayMua, int MaKhachHang, ref int dem, string run)
        {
            return DonHangDAO.DanhSachDonHang(LoaiDonHang, TinhTrang, NgayMua, MaKhachHang, ref dem, run);
        }

        public static DonHangDTO ThongTinDonHang(string maDonHang, string run)
        {
            return DonHangDAO.ThongTinDonHang(maDonHang, run);
        }

        public static bool CapNhatDonHang(string MaDonHang, string TinhTrang, string run)
        {
            return DonHangDAO.CapNhatDonHang(MaDonHang, TinhTrang, run);
        }

        public static bool MuaSanPham(int masanpham, int makhachhang)
        {
            return DonHangDAO.MuaSanPham(masanpham, makhachhang);
        }

        public static int ThanhToan(string madonhang, string run)
        {
            return DonHangDAO.ThanhToan(madonhang, run);
        }
    }
}
